# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=urlscan
_pkgname=urlscan
pkgver=1.0.1
pkgrel=1
pkgdesc="Mutt and terminal url selector (similar to urlview)"
options="!check" # No testsuite
url="https://github.com/firecat53/urlscan"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3 py3-urwid"
makedepends="py3-gpep517 py3-wheel py3-installer py3-hatchling py3-hatch-vcs"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/u/$_pkgname/$_pkgname-$pkgver.tar.gz"

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
f4af6e8d01aaaf82da7d305206d79c795bcfbcf5dbc5af360be1628aa242de9a135bfd843768f8e3e77c0add72aa77544570cc9d31ba65de80e705c97b527cff  urlscan-1.0.1.tar.gz
"
